package com.jic.market.mapper;

import java.lang.Long;
import java.util.List;

import com.jic.market.entity.LotteryDrawLimit;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 抽奖活动用户限制记录表
 * @author : 
 * @email : 
 * @since : 2020-03-03 03:06:12
 * @version : v1.0.0
 */
@Repository
@Mapper
public interface  LotteryDrawLimitMapper {

    long insert(LotteryDrawLimit lotteryDrawLimit);

    long foreachInsert(List<LotteryDrawLimit> lotteryAwards);

    long delete(Long id);

    long update(LotteryDrawLimit lotteryDrawLimit);

    LotteryDrawLimit queryByPrimaryKey(Long id);

    List<LotteryDrawLimit> query(LotteryDrawLimit lotteryDrawLimit);

    List<LotteryDrawLimit> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("lotteryDrawLimit") LotteryDrawLimit lotteryDrawLimit);

    long queryPageCount(LotteryDrawLimit lotteryDrawLimit);
}